<%@ page import="vo.User" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生成绩管理系统v1.0</title>
</head>
<body>
欢迎您：${user.uname}(${user.uid})
</br>
<a href="lecUI.jsp"> 回到上一页 </a></br>
<h1>查询选课名单</h1>
<%
    String clname=request.getParameter("clname");
%>
<%=clname%></br>
<%
    System.out.println(clname);
%>
<c:if test="${empty studentList}">
    <%
        request.getRequestDispatcher("/askStudents?clname="+clname).forward(request, response);
    %>
    <%--<jsp:forward page="/askStudents?clname=<%=clname%>"></jsp:forward>--%>
</c:if>
<tr>
    <td>编号</td>
    <td>姓名</td>
    <td>班级</td>
    </br>
</tr>
<c:forEach items="${studentList}" var="student">
    <tr>
        <td>${student.sid}</td>
        <td>${student.sname}</td>
        <td>${student.clname}</td>
        </br>
    </tr>
</c:forEach>
</body>
</html>
